<?php if (isset($this->error)) : ?>
    <p>Error: <b><?php echo $this->error ?></b></p>
<?php endif ?>
<?php if (isset($this->hasFormation)) : ?>
    <p>Your formation</p>

<?php else : ?>
    <h3>Build your squad</h3>
    <input type="hidden" id="squad" name="squad" value="<?php echo $this->squad_id ?>"/>
    <div id="formationDivision">
        <label>Change formation</label>
        <div id="formations">
            <a href="#" onclick="changeFormation('4-4-2')">4-4-2</a> | <a href="#" onclick="changeFormation('4-3-3')">4-3-3</a> |
            <a href="#" onclick="changeFormation('3-5-2')">3-5-2</a> | <a href="#" onclick="changeFormation('4-5-1')">4-5-1</a>
        </div>
        <div id="squadFormation">
            <label>Your current formation</label><div id="formation">4-4-2</div>
            <div id="formationconfig">
                <ul id="navlist">
                    <li>10</li><li>11</li>
                </ul>
                <ul id="navlist">
                    <li>6</li><li>7</li><li>8</li><li>9</li>
                </ul>
                <ul id="navlist">
                    <li>2</li><li>3</li><li>4</li><li>5</li>
                </ul>
                <ul id="navlist">
                    <li>1</li>
                </ul>
            </div>
        </div>
    </div>
    
    <div id="searchFilters"><a id="a" href="#">A</a> | <a id="b" href="#">B</a> | <a id="c" href="#">C</a> |
        <a id="d" href="#">D</a> | <a id="e" href="#">E</a> | <a id="f" href="#">F</a> | <a id="g" href="#">G</a>
        | <a id="H" href="#">H</a> | <a id="i" href="#">I</a> | <a id="j" href="#">J</a> | <a id="k" href="#">K</a>
        | <a id="l" href="#">L</a> | <a id="m" href="#">M</a> | <a id="n" href="#">N</a> | <a id="o" href="#">O</a>
        | <a id="p" href="#">P</a> | <a id="q" href="#">Q</a> | <a id="r" href="#">R</a> | <a id="s" href="#">S</a>
        | <a id="t" href="#">T</a> | <a id="u" href="#">U</a> | <a id="v" href="#">V</a> | <a id="w" href="#">W</a>
        | <a id="x" href="#">X</a> | <a id="y" href="#">Y</a> | <a id="z" href="#">Z</a>
    </div>
    <div id="searchGroup">
        <input type="radio" name="filterGroup" value="national" checked> Players by National Team<br/>
        <input type="radio" name="filterGroup" value="position"> Players by Position
    </div>
    <div id="results"></div>
    <!-- This should be right hand side of screen -->
    
<?php endif ?>